package br.unicamp.ic.inf312.arena.visao;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JLabel;

public class Vazio extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel lblMsg = null;

	/**
	 * This is the default constructor
	 */
	public Vazio() {
		super();
		initialize();
	}

	public Vazio(String msg) {
		super();
		initialize();
		lblMsg.setText(msg);
        lblMsg.setVisible(true);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
        lblMsg = new JLabel();
        lblMsg.setText("");
        lblMsg.setVisible(false);
        GridLayout gridLayout1 = new GridLayout();
        this.setLayout(gridLayout1);
        this.setPreferredSize(new java.awt.Dimension(600,300));
        this.setSize(309, 133);
        this.add(lblMsg, null);
        gridLayout1.setRows(4);
        gridLayout1.setColumns(4);
	}
}